import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'

export default defineConfig({
	plugins: [
		uni()
	],
	server: {
		proxy: {
			'/dev-api': {
				target: 'http://192.168.0.117:8080', // 目标服务
				// target: 'https://app.mmsteel.cn', // 目标服务
				changeOrigin: true,
				rewrite: path => path.replace(/^\/dev-api/, '/'),
			}
		}
	}
})